/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import java.util.Comparator;
import java.util.Vector;

/**
 *
 * @author francesco
 */
public class SistemaComparatorPartite implements Comparator{

    public int compare(Object o1, Object o2) {

        Vector<Scommessa> v1 = (((Sistema)(o1)).getPartite());
        Vector<Scommessa> v2 = (((Sistema)(o2)).getPartite());

        if (v1.containsAll(v2)){
            return 0;
        }

        return 1;


    }

}
